#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMessageBox>

#include "SANServer.h"

namespace Ui {
    class MainWindow;
}

void * SpawnReceive(void *);



class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_pushButton_pressed();

    void on_pushButton_2_pressed();

    void on_pushButton_3_pressed();

    void on_pushButton_5_pressed();

    void on_pushButton_4_pressed();

public slots:

    void NotifyServerConnected(bool aStatus);

    void ClientAccepted(bool aStatus);

    void DisplayRecdData(QString aBuf);

    void ServerToClient(bool aStatus);

    void DisplaySortedData(char *aBuf);

private:
    Ui::MainWindow *ui;
    SANServer *iSANServer;
    SANSorting *iSANSorter;
};

#endif // MAINWINDOW_H
